/*
 * @Author: AskMeWhy
 * @Date: 2020-12-27 11:58:47
 * @Last Modified by: AskMeWhy
 * @Last Modified time: 2021-01-04 15:21:20
 */
const app = getApp();
const { AskComponent, isEmptyObject } = app._require("common/index");

AskComponent({
    properties: {
        label: {
            type: String,
            value: "",
        },
        customClass: {
            type: String,
            value: "",
        },
        address: {
            type: Object,
            value: {},
        },
    },
    methods: {
        handleClick() {
            this.selectComponent("#location").getLocation();
        },
        locationChange(e) {
            this.$emit("setModel", {
                currentTarget: e.detail.currentTarget,
                detail: e.detail.detail,
            });
        },
    },
});
